
<div class="content-box">
    <div class="box-header clear">
        <ul class="tabs clear">
            <li><a href='<?php echo base_url() ?>contract/add/<?php echo $id;?>' class="selected"><?php echo lang('btn_add') ?></a></li>
        </ul>
        <h2><?php echo lang('pg_member').": ".$member->first_name." ".$member->last_name; ?></h2>
    </div>
    <div class="box-body clear">
        <div id="data-table">
        	<table class="datatable">
                    <thead>
                        <tr>
                            <th><?php echo lang('lbl_contract_name') ?></th>
                            <th><?php echo lang('lbl_contract_number') ?></th>
                            <th><?php echo lang('lbl_product') ?></th>
                            <th><?php echo lang('lbl_start_date') ?></th>
                            <th><?php echo lang('lbl_end_date') ?></th>
                            <th><?php echo lang('lbl_status') ?></th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>

                        <?php foreach ($contracts as $key => $item): ?>
                            <tr id="row<?php echo $key; ?>">
                                <td><?php echo $item->contract_name; ?></td>
                                <td><?php echo $item->contract_number; ?></td>
                                <td><?php echo $item->product_name; ?></td>
                                <td><?php echo $item->start_date; ?></td>
                                <td><?php echo $item->end_date; ?></td>
                                <td><?php echo $status[$item->status]; ?></td>
                                <td>
                                    <a href="<?php echo base_url() ?>contract/edit/<?php echo $id.'/'.$item->id; ?>">
                                    	<img title="<?php echo lang('lbl_edit') ?>" alt="" class="icon16 fl-space2" src="<?php echo base_url().SKINSPATH; ?>admin/images/ico_edit_16.png">
                                    </a>
                                    <a href="javascript:remove('row<?php echo $key; ?>','<?php echo base_url() ?>contract/delete','<?php echo $item->id; ?>')">
                                    	<img title="<?php echo lang('lbl_delete') ?>" alt="" class="icon16 fl-space2" src="<?php echo base_url().SKINSPATH; ?>admin/images/ico_delete_16.png">
                                    </a>
                                </td>
                            </tr>

                        <?php endforeach; ?>
                    </tbody>
                </table>
        </div>
    </div>
</div>